{{ if not (eq (len site.RegularPages) 0) }}
  <div class="archiveslist">
    <p class="asidetitle">{{ .Site.Params.Strings.Archive | default "Archives" }}</p>
    <ul class="archive-list">
      {{ range $value := (where site.RegularPages "Type" "post").GroupByDate (.Site.Params.MonthFormat | default "2006年01月")}}
      {{ $url := (index $value.Pages 0).Date.Format "2006-01" | urlize }}
      <li class="archive-list-item">
        <a class="archive-list-link" href="{{ $.Site.BaseURL }}post/#{{ $url }}">{{ .Key }}</a><span class="archive-list-count">{{ len $value.Pages }}</span>
      </li>
      {{ end }}
    </ul>

  </div>
{{ end }}
